package mdt.ext;

import org.tigris.gef.presentation.FigInk;
import mdt.action.SetFigShapeAttrAction;

import javax.swing.*;
import java.awt.event.MouseEvent;
import java.util.Vector;

/**
 * Created by xiaobyu on 7/19/2016.
 */
public class FigInkExt extends FigInk {
    public FigInkExt() {
    }

    public FigInkExt(int x, int y) {
        super(x, y);
    }

    public Vector getPopUpActions(MouseEvent me) {
        Vector popUpActions = super.getPopUpActions(me);
        popUpActions.add(new JSeparator());
        popUpActions.add(new JMenuItem(new SetFigShapeAttrAction()));
        return popUpActions;
    }
}
